package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.firepreventionplan;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class FirepreventionplanService extends BaseService {

	private static final Logger logger = LoggerFactory.getLogger(FirepreventionplanService.class);


	/**
	 * 消防预案列表
	 * @param
	 * @return
	 */
	public RespEntity firepreventionplanListPage(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firepreventionplanListPage","firepreventionplan");
	}

	/**
	 * 消防预案详情
	 * @param
	 * @return
	 */
	public RespEntity firepreventionplanDetail(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firepreventionplanDetail","firepreventionplan");
	}

	/**
	 * 消防预案新增
	 * @param
	 * @return
	 */
	public RespEntity firepreventionplanAdd(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firepreventionplanAdd","firepreventionplan");
	}

	/**
	 * 消防预案修改
	 * @param
	 * @return
	 */
	public RespEntity firepreventionplanUpdate(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firepreventionplanUpdate","firepreventionplan");
	}

	/**
	 * 消防预案删除
	 * @param
	 * @return
	 */
	public RespEntity firepreventionplanDelete(JSONObject jsonParam) {
		jsonParam = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
		return restJava(jsonParam,"businessJava","firepreventionplanDelete","firepreventionplan");
	}

}
